<?php

require_once('krumo/class.krumo.php');
require_once('db.php');

require_once('model.php');
require_once('modelRecord.php');

$db = new db('localhost', 'root', '', 'playground');

class User extends model {}
class Rank extends model {}
class Comment extends model {}

$user = new User($db);
$rank = new Rank($db);
$comm = new Comment($db);

krumo($user->findAll());
krumo($user->findOneById(1));

krumo($comm->findAll()->orderBy());

$comm->setLocale(1);
krumo($comm->findAll());
$comm->setLocale(2);
krumo($comm->findAll());

?>